import React from 'react'
import ReactLoading, { LoadingType } from 'react-loading';

export interface LoadingProps {
    type?: LoadingType;
    color?: string;
}


const Loading = ({ type = "spinningBubbles", color = "#1890ff" }: LoadingProps) => {
    return (
        <div className='loading-container'>
            <ReactLoading type={type} color={color} height={100} width={100} />
        </div>
    )
}


export default Loading;
